# $Id: PKGBUILD 175087 2013-01-13 09:49:37Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xmag
pkgver=1.0.5
pkgrel=1
pkgdesc="Magnify parts of the screen"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxaw' 'libxmu' 'libxt' 'libx11')
makedepends=('xorg-util-macros')
source=(http://xorg.freedesktop.org/archive/individual/app/xmag-${pkgver}.tar.bz2)
sha256sums=('4ace8795cf756be4ba387f30366045594ce26adda2f5ffe1f8e896825d0932c6')

build() {
  cd "${srcdir}/xmag-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/xmag-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
